package cool.taomu.box.tomcat.config

import com.google.inject.AbstractModule
import com.google.inject.name.Names
import cool.taomu.box.guice.ann.Binder
import cool.taomu.box.tomcat.ITomcatFilter
import javax.servlet.Servlet

@Binder(bind=Servlet, to=TomcatDefaultHttpServletProvider, provider=true)
@Binder(bind=ITomcatFilter, to=TomcatDefaultFilterProvider, provider=true)
class TomcatDefaultModule extends AbstractModule {

	override protected configure() {
		binder().bind(int).annotatedWith(Names.named("port")).toInstance(8080)
	}

}
